package com.itheima.web.controller;

import com.itheima.web.usermanager.MovementManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.ws.rs.POST;

@RestController
public class MovementController{


    @Autowired
    private MovementManager movementManager;
    //动态复审通过
    @PostMapping("/manage/messages/pass")
    public ResponseEntity recheckPass(@RequestBody String[] ids){
        //调用manager
       return movementManager.recheckPass(ids);

    }
    //动态审核拒绝
    @PostMapping("/manage/messages/reject")
    public ResponseEntity reject(@RequestBody String[] ids){
        //调用manage
        return movementManager.reject(ids);
    }

}
